package com.qby.project.service;

import com.qby.framework.web.AjaxResult;
import com.qby.project.vo.MessageVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @description: 公共类
 * @author: qiu bo yang
 * @create: 2020-03-27 09:55
 */
public interface IAppCommonService {
    /**
     * 图形验证码
     *
     * @param random   随机字符
     * @param response
     */
    void getImageCaptcha(String random, HttpServletResponse response);

    /**
     * 上传单个文件
     *
     * @param file
     * @return
     */
    AjaxResult uploadFile(MultipartFile file);

    /**
     * 上传多个文件
     *
     * @param files
     * @return
     */
    AjaxResult uploadFiles(MultipartFile[] files);

    /**
     * 发送短信
     *
     * @param messageVo 短信参数
     * @return
     */
    AjaxResult sendMessage(MessageVo messageVo);
}
